package com.starnet.yarnmonitor.yarn.vo.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class YarnWarnOptionAddParam {

    /**
     * 警告类型
     */
    @NotNull(message = "warnType")
    private String warnType;

    /**
     * 监控阈值
     */
    @NotNull(message = "告警阈值不能为空")
    @Min(message = "监控阈值不能为负数", value = 0)
    private Double value;

    /**
     * 告警描述
     */
    @NotNull(message = "告警阈值不能为空")
    private String description;

    /**
     * 是否开启
     */
    @NotNull(message = "必须选择是否开启")
    private Boolean isOpen;

}
